<?php
namespace app\common\model;
use think\Model;
use traits\model\SoftDelete;
class Slide extends Model{
    protected static function init()
    {
        Slide::afterWrite(function ($model) {
            cache("cms_".$model['cms_id'],null);
        });
        Slide::afterUpdate(function ($model) {
            cache("cms_".$model['cms_id'],null);
        });
    }
    use SoftDelete;
    protected $deleteTime = 'delete_time';
}